package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Uavinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="uavinfo"
    ,catalog="lelefly"
)

public class UavInfo  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String uavType;
     private Integer haverId;
     private Integer flyTime;
     private String updateTime;
     private String mode;
     private Integer count;


 
	/** default constructor */
    public UavInfo() {
    }

	/** minimal constructor */
    public UavInfo(Integer haverId, Integer flyTime) {
        this.haverId = haverId;
        this.flyTime = flyTime;
    }
    
    /** full constructor */
    public UavInfo(String uavType, Integer haverId, Integer flyTime, String updateTime, String mode) {
        this.uavType = uavType;
        this.haverId = haverId;
        this.flyTime = flyTime;
        this.updateTime = updateTime;
        this.mode = mode;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="uav_type", length=100)

    public String getUavType() {
        return this.uavType;
    }
    
    public void setUavType(String uavType) {
        this.uavType = uavType;
    }
    
    @Column(name="haver_id", nullable=false)

    public Integer getHaverId() {
        return this.haverId;
    }
    
    public void setHaverId(Integer haverId) {
        this.haverId = haverId;
    }
    
    @Column(name="fly_time", nullable=false)

    public Integer getFlyTime() {
        return this.flyTime;
    }
    
    public void setFlyTime(Integer flyTime) {
        this.flyTime = flyTime;
    }
    
    @Column(name="update_time", length=100)

    public String getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
    
    @Column(name="mode", length=50)

    public String getMode() {
        return this.mode;
    }
    
    public void setMode(String mode) {
        this.mode = mode;
    }
   

    // Constructors
    @Column(name="count", length=50)
    
   public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}







}